<%form_for :room,:url=>{:controller=>'rooms',:action=>'allocation',:event_id=>"#{@event.id}"} do |f|%>
  <%if users.size>contain_users_count%>
    该类型的房间可以入住  <b><%=contain_users_count%></b>  名人员,还有  <b><%=users.size-contain_users_count%></b>  名人员不能入住
  <%end%>
  <%if users.size==contain_users_count%>
    <b><%=users.size%></b>  人员正好被分配在该类型的房间里
  <%end%>
  <%if users.size<contain_users_count%>
    该类型的房间可以入住  <b><%=users.size%></b>  名人员,还可以容纳  <b><%=contain_users_count-users.size%></b>  名人员
  <%end%>
  <%=hidden_field_tag 'room_category',room_category%>
  <%=hidden_field_tag 'start_index',start_index%>
  <%=hidden_field_tag 'start_index',end_index%>
  <%=hidden_field_tag 'count',count%>
  <%=f.submit '确认'%>  | <%=link_to_remote '取消',:update=>"room_#{room_category}_place",:url=>{:controller=>'rooms',:action=>'cancel_allocation'},:class=>'button'%>
<%end%>